import { ProLayoutProps } from '@ant-design/pro-components';

/**
 * @name
 */
const Settings: ProLayoutProps & {
  pwa?: boolean;
  logo?: string;
} = {
  // 页面标题
  pageTitleRender: false,
  // 页脚
  footerRender: false,
  navTheme: 'light',
  // 侧边栏宽度
  siderWidth: 200,
  // 拂晓蓝
  colorPrimary: '#1890ff',
  layout: 'mix',
  contentWidth: 'Fluid',
  fixedHeader: false,
  fixSiderbar: true,
  colorWeak: false,
  title: '场景联动',
  pwa: true,
  logo: '/images/logo2.png',
  iconfontUrl: '',

  token: {
    colorBgAppListIconHover: 'rgba(0,0,0,0.06)',
    colorTextAppListIconHover: 'rgba(255,255,255,0.95)',
    colorTextAppListIcon: 'rgba(255,255,255,0.85)',
    // 整体的背景色
    // bgLayout: 'linear-gradient(270deg,#0cabf4,#0fa7f0 21%,#3170c2 100%,#326ec0 0)',
    sider: {
      // colorBgCollapsedButton: '#fff',
      // colorTextCollapsedButtonHover: 'rgba(0,0,0,0.65)',
      // colorTextCollapsedButton: 'rgba(0,0,0,0.45)',
      colorMenuBackground: '#3170c2',
      colorBgMenuItemCollapsedElevated: 'rgba(0,0,0,0.65)',
      // colorMenuItemDivider: 'rgba(255,255,255,0.15)',
      // colorBgMenuItemHover: 'rgba(0,0,0,0.06)',
      colorBgMenuItemSelected: 'rgba(0,0,0,0.15)',
      colorTextMenuSelected: '#fff',
      colorTextMenuItemHover: 'rgba(255,255,255,0.75)',
      colorTextMenu: 'rgba(255,255,255,0.75)',
      colorTextMenuSecondary: 'rgba(255,255,255,0.65)',
      colorTextMenuTitle: 'rgba(255,255,255,0.95)',
      colorTextMenuActive: 'rgba(255,255,255,0.95)',
      colorTextSubMenuSelected: 'red',
    },
    header: {
      colorBgHeader: '#3170c2',
      colorHeaderTitle: '#fff',
      colorTextMenu: '#fff',
      colorTextMenuSecondary: '#fff',
      colorTextMenuSelected: '#fff',
      colorBgMenuItemSelected: '#fff',
      colorTextMenuActive: '#fff',
      colorTextRightActionsItem: '#fff',
      heightLayoutHeader: 50,
    },

    // 参见ts声明，demo 见文档，通过token 修改样式
    //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F
  },
};

export default Settings;
